package com.wssnail.dto;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Data
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "xml")
public class Article {
    @JSONField(name = "title")
    @XmlElement(name = "Title", required = true)
    private String title;

    @JSONField(name = "description")
    @XmlElement(name = "Description", required = true)
    private String Description;

    @JSONField(name = "picurl")
    @XmlElement(name = "PicUrl", required = true)
    private String PicUrl;

    @JSONField(name = "url")
    @XmlElement(name = "Url", required = true)
    private String Url;
}